package net.qhzw.admin.constant;

import java.net.InetAddress;

public class ServerConfig {

    public static String getFileUrl() {
        return "http:" + getIp() + "/group1/M00/";
    }

    private static String getIp() {
        InetAddress address = null;
        try {
            address = InetAddress.getLocalHost();
            return address.getHostAddress();
        } catch (Exception e) {
            return "http:127.0.0.1/group1/M00/";
        }
    }
}
